//#include "photocell.h"
/*
void initPhotocell(int port) {
	PHOTOCELL_PIN = port;
}
*/
int getLight() {
	int photocellVal = analogRead(PHOTOCELL_PIN);
	return photocellVal;
} 

float getIlluminance() {
	int photocellVal = analogRead(PHOTOCELL_PIN);
	float Lux=0.004*photocellVal*photocellVal;
	return Lux;
}
